package com.csi;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.core.Queue;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@MapperScan("com.csi.mapper")
public class ReceiverApplication {

    public static void main(String[] args) {
        SpringApplication.run(ReceiverApplication.class, args);
    }

    @Bean
    public Queue orderQueue(){
        return new Queue("order.queue");
    }

    @Bean
    public Queue stockQueue(){
        return new Queue("stock.queue");
    }
    @Bean
    public Queue accountQueue(){
        return new Queue("account.queue");
    }

    @Bean
    public Queue userBook(){
        return new Queue("userBook.queue");
    }

    @Bean
    public Queue travelPackage(){
        return new Queue("travelPackage.queue");
    }
}
